<template>
    <div class="list">
        <div class="current">
            <p class="title">当前城市</p>
            <div class="city">
                <div class="btn">
                    南京
                </div>
            </div>
        </div>
        <div class="current">
            <p class="title">热门城市</p>
            <div class="city">
                <div class="btn" v-for="(item,index) of hotCities" :key="index">
                {{item.name}}
                </div>
            </div>
        </div>
        <div class="current" v-for="(item,index) of cities" :key="index">
            <p class="title">{{index}}</p>
            <div class="name city" v-for="(city,inx) of item" :key="inx">{{city.name}}</div>
        </div>
    </div>
</template>
<script>
export default {
    name:"CityList",
    props:['hotCities','cities']
}
</script>
<style lang="scss" scoped>
.list{
    // position: absolute;
    margin-top: 165px;
    width:100%;
    background-color: #eee;
}
.title{
    margin-left: 20px;
    height:55px;
    line-height:55px;
    font-size: 18px;
    color: #666;
}
.city{
    background-color: #fff !important;
    // height: 80px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.city .btn{
    width: 180px;
    height: 55px;
    line-height: 55px;
    text-align: center;
    border:1px solid #ccc;
    font-size: 18px;
    border-radius: 15px;
    margin-left: 40px;
     color: #666;
     margin-top:12px;
     margin-bottom:12px;
}
.name{
    widows: 100%;
    height: 60px;
    color: #666;
    border-bottom: 1px solid #ccc;
    font-size: 18px;
    padding-left: 15px;
}

</style>

